package cos.utils;

public class StringUtils {
	/**
	 * return true if String is null or empty
	 */
	public static boolean isNullOrEmpty(String s) {
		return (s == null || s.equals(""));
	}

	/**
	 * return true if at least one of Strings in null or empty
	 */
	public static boolean areNullOrEmpty(String a, String b) {
		return isNullOrEmpty(a) || isNullOrEmpty(b);
	}
}
